import request from '@/utils/request'

// 设置slogan
export function uploadSloganApi(data) {
  return request({
    url: '/upload_slogan',
    method: 'get',
    params: data
  })
}
// 获取slogan
export function getSloganApi() {
  return request({
    url: '/get_slogan',
    method: 'get'
  })
}
// 获取部门列表
export function getDepartmentListApi(data) {
  return request({
    url: '/get_department',
    method: 'get',
    params: data
  })
}
// 增加部门 修改部门  有id为修改
export function addDepartmentApi(data) {
  return request({
    url: '/upload_department',
    method: 'get',
    params: data
  })
}
// 冻结或解冻部门
export function frozenDepartmentApi(data) {
  return request({
    url: '/frozen_department',
    method: 'get',
    params: data
  })
}
// 获取招聘等级
export function getRecruitLevelApi() {
  return request({
    url: '/get_recruit_level',
    method: 'get'
  })
}
// 上传修改招聘等级
export function uploadRecruitLevelApi(data) {
  return request({
    url: '/upload_recruit_level',
    method: 'get',
    params: data
  })
}
// 逻辑删除招聘等级
export function deleteRecruitLevelApi(data) {
  return request({
    url: '/delete_recruit_level',
    method: 'get',
    params: data
  })
}
// 获取用户列表
export function getUserListApi(data) {
  return request({
    url: '/get_user_list',
    method: 'get',
    params: data
  })
}
// 审核用户
export function checktUserApi(data) {
  return request({
    url: '/check_user',
    method: 'get',
    params: data
  })
}
// 删除用户
export function deleteUserApi(data) {
  return request({
    url: '/delete_user',
    method: 'get',
    params: data
  })
}
// 更新用户部门
export function uploadUserDepartmentApi(data) {
  return request({
    url: '/upload_user_department',
    method: 'get',
    params: data
  })
}
// 获取招聘订单列表
export function getRecruitListApi(data) {
  return request({
    url: '/get_admin_recruit_order_list',
    method: 'get',
    params: data
  })
}
// 用户名获取所有
export function getUserListByNameApi(data) {
  return request({
    url: '/find_user_info',
    method: 'get',
    params: data
  })
}
// 接单或拒单
export function receiveRefuseOrder(data) {
  return request({
    url: '/receive_order',
    method: 'get',
    params: data
  })
}
// 获取招聘订单信息
export function getRecruiteOrderApi(data) {
  return request({
    url: '/get_recruit_order',
    method: 'get',
    params: data
  })
}
// 更新招聘进程
export function uploadRecruitProcessApi(data) {
  return request({
    url: '/upload_recruit_process',
    method: 'get',
    params: data
  })
}
// 员工入职
export function recruitEntryApi(data) {
  return request({
    url: '/recruit_entry',
    method: 'get',
    params: data
  })
}
// 完成订单
export function completeRecruitApi(data) {
  return request({
    url: '/complete_recruit',
    method: 'get',
    params: data
  })
}
// 获取积分日志
export function getIntegralLogApi(data) {
  return request({
    url: '/get_integral_log_list',
    method: 'get',
    params: data
  })
}
// 获取司机列表
export function getDriverListApi(data) {
  return request({
    url: '/get_driver_list',
    method: 'get',
    params: data
  })
}
export function getBannerListApi() {
  return request({
    url: '/get_banner',
    method: 'get'
  })
}
export function uploadBannerApi(data) {
  return request({
    url: '/upload_banner',
    method: 'get',
    params: data
  })
}
export function deleletBannerApi(data) {
  return request({
    url: '/delete_banner',
    method: 'get',
    params: data
  })
}
// 设置司机
export function setUserDriverApi(data) {
  return request({
    url: '/set_user_driver',
    method: 'get',
    params: data
  })
}
// 设置司机
export function setUserUndriverApi(data) {
  return request({
    url: '/set_user_undriver',
    method: 'get',
    params: data
  })
}
// 获取车辆列表
export function getCarListApi(data) {
  return request({
    url: '/get_car_list',
    method: 'get',
    params: data
  })
}
// 新增车辆
export function uploadCarInfoApi(data) {
  return request({
    url: '/upload_car_info',
    method: 'get',
    params: data
  })
}
// 删除车辆
export function deleteCarApi(data) {
  return request({
    url: '/delete_car',
    method: 'get',
    params: data
  })
}
// 获取订单
export function getCarOrderListApi(data) {
  return request({
    url: '/admin_get_car_order_list',
    method: 'get',
    params: data
  })
}
// 用车 接单
export function acceptCarOrderApi(data) {
  return request({
    url: '/admin_receive_car_order',
    method: 'get',
    params: data
  })
}
// 获取列表
export function getRulesListApi(data) {
  return request({
    url: '/get_rules',
    method: 'get',
    params: data
  })
}
// 获取列表
export function uploadRulesApi(data) {
  return request({
    url: '/upload_rules',
    method: 'post',
    data
  })
}
// 获取分类
export function getRulesClassApi() {
  return request({
    url: '/get_rules_class',
    method: 'get'
  })
}
// 获取规章详情
export function getRulesInfoApi(data) {
  return request({
    url: '/get_rules_info',
    method: 'get',
    params: data
  })
}
export function deleteRulesInfoApi(data) {
  return request({
    url: '/delete_rules',
    method: 'get',
    params: data
  })
}
